package com.bt7274.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论表 ：用户发表的评论
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 关联帖子id
     */
    private String postId;

    /**
     * 评论用户id
     */
    private String userId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private LocalDateTime createdTime;

    /**
        * 楼层号
        */
    private int floorNumber;
    // 被回复的用户ID
    private String replyToUserId;
    // 被回复的楼层号
    private String replyToCommentId;
    private String imageUML;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public String getImageUML() {
        return imageUML;
    }
    public void setImageUML(String imageUML) {
        this.imageUML = imageUML;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "id = " + id +
        ", postId = " + postId +
        ", userId = " + userId +
        ", content = " + content +
        ", createdTime = " + createdTime +
        "}";
    }

    public void setFloorNumber(int i) {
        this.floorNumber = i;
    }
    public int getFloorNumber() {
        return floorNumber;
    }
    public void setReplyToUserId(String i) {
        this.replyToUserId = i;
    }
    public String getReplyToUserId() {
        return replyToUserId;
    }
    public void setReplyToCommentId(String i) {
        this.replyToCommentId = i;
    }
    public String getReplyToCommentId() {
        return replyToCommentId;
    }
}
